package org.example.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.example.sys.entity.TSysUser;
import org.example.sys.entity.dto.UserDTO;

/**
 * 用户表(TSysUser)表服务接口
 * @author Calvin
 */
public interface TSysUserService extends IService<TSysUser> {

    UserDTO getByUsername(String username);

    boolean comparePassword(String password, String paramPassword);

    UserDTO getByIdRel(Long loginUserId);

    String encodePassword(String password);

    boolean saveUser(UserDTO user);

    boolean updateUser(UserDTO user);
}

